-- GENERATED SPELL FOR [Overseer Veraj] --


function spell0_32263(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32263', 591, 1)
end

function spell1_32263(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(20787,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32263', 23000, 1)
end

function spell2_32263(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32263', 3000, 1)
end

function Sorts_32263(pUnit, Event)
local choix_sorts_32263 = math.random(0, 2)
if choix_sorts_32263 == 0 then
pUnit:RegisterEvent('spell0_32263', 1, 1)
end
if choix_sorts_32263 == 1 then
pUnit:RegisterEvent('spell1_32263', 1, 1)
end
if choix_sorts_32263 == 2 then
pUnit:RegisterEvent('spell2_32263', 1, 1)
end
end

function mob32263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32263', math.random(1500, 3000), 1)
end

function mob32263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32263, 1, 'mob32263_Action')
RegisterUnitEvent(32263, 2, 'mob32263_Leave')
RegisterUnitEvent(32263, 3, 'mob32263_Kill')
RegisterUnitEvent(32263, 4, 'mob32263_Die')
